/* ================= PALETA FEMENINA ================= */
:root {
	--pink-main: #f48fb1;
	--pink-soft: #fde4ec;
	--lavender: #cdb4db;
	--text-dark: #4a4a4a;
}

/* ================= GENERAL ================= */
body {
	font-family: 'Segoe UI', sans-serif;
	color: var(--text-dark);
	background: linear-gradient(180deg,
			#fff5f8 0%,
			#fde4ec 40%,
			#ffffff 100%);
}

/* ================= FONDO ANIMADO ================= */
.bg-shapes {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.shape {
	position: absolute;
	opacity: .25;
	animation: float 6s ease-in-out infinite;
}

.shape.circle {
	width: 240px;
	height: 240px;
	background: var(--pink-main);
	border-radius: 50%;
	left: -120px;
	top: 20%;
}

.shape.circle.small {
	width: 160px;
	height: 160px;
	top: 65%;
	left: -80px;
	animation-delay: 3s;
}

.shape.blob {
	width: 300px;
	height: 300px;
	background: var(--lavender);
	border-radius: 40% 60% 70% 30%;
	right: -150px;
	top: 15%;
	animation-delay: 2s;
}

.shape.blob.small {
	width: 200px;
	height: 200px;
	bottom: 10%;
	right: -100px;
	animation-delay: 5s;
}

@keyframes float {
	0% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-60px);
	}

	100% {
		transform: translateY(0);
	}
}

/* ================= NAV ================= */
.navbar {
	background: #f8d9e6;
}

/* ================= SEARCH BAR ================= */
.search-bar {
	background: linear-gradient(135deg, var(--pink-main), var(--lavender));
}

/* ================= INFO BAR ================= */
.info-box {
	background: white;
	border-radius: 14px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

/* ================= PRODUCT CARD ================= */
.product-card {
	position: relative;
	border: none;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
	transition: transform .3s;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 350px;
}

.product-card:hover {
	transform: translateY(-5px);
}

.product-card img {
	height: 150px;
	object-fit: cover;
}

.product-card .card-body {
	padding: 10px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: space-between;
}

.product-card h6 {
	font-size: 14px;
	margin-bottom: 4px;
}

.price {
	font-size: 14px;
	font-weight: bold;
	color: var(--pink-main);
	margin-bottom: 6px;
}

/* ================= LIKE ================= */
.like-icon {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 20px;
	cursor: pointer;
	color: #bbb;
}

.like-icon.liked {
	color: #ff4d88;
}

/* ================= CANTIDAD ================= */
.quantity-control {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
	flex-wrap: nowrap;
}

.quantity-control input {
	width: 32px;
	text-align: center;
	border: none;
	background: transparent;
	font-size: 13px;
	font-weight: bold;
	flex-shrink: 0;
}

.btn-qty {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: none;
	background: linear-gradient(135deg, var(--pink-main), var(--lavender));
	color: white;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0;
}

@media (max-width: 768px) {
	.quantity-control {
		gap: 4px;
		margin-bottom: 10px;
	}

	.quantity-control input {
		width: 28px;
		font-size: 12px;
	}

	.btn-qty {
		width: 24px;
		height: 24px;
		font-size: 12px;
	}
}

/* ================= BOTONES ================= */
.btn-clase {
	background: linear-gradient(135deg, var(--pink-main), var(--lavender));
	border: none;
	font-size: 13px;
	padding: 6px;
}

/* ================= CONTENEDOR PRODUCTOS ================= */
#products {
	align-items: stretch;
}

#products > div {
	display: flex;
}

#products .product-card {
	width: 100%;
}

/* ================= SIDEBAR ================= */
.sidebar-sticky {
	position: sticky;
	top: 20px;
}

.card {
	border-radius: 12px;
	background-color: #ffffff;
}

.btn-outline-primary, .btn-outline-danger {
	transition: all 0.3s ease;
}

.btn-outline-primary:hover {
	background-color: #0d6efd;
	color: white;
}

.btn-outline-danger:hover {
	background-color: #dc3545;
	color: white;
}

/* ================= FILTROS CHECKBOXES ================= */
.filtros-container {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: stretch;
	max-height: 250px;
	overflow-y: auto;
	padding: 0.75rem;
}

.filtros-container::-webkit-scrollbar {
	width: 6px;
}

.filtros-container::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 10px;
}

.filtros-container::-webkit-scrollbar-thumb {
	background: #d685c0;
	border-radius: 10px;
}

.filtros-container::-webkit-scrollbar-thumb:hover {
	background: #b857a0;
}

.filtros-container-mobile {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: stretch;
	max-height: 200px;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 0.75rem;
}

@media (max-width: 576px) {
	.filtros-container-mobile {
		overflow-y: hidden;
		overflow-x: auto;
		max-height: none;
		flex-direction: row;
		flex-wrap: wrap;
		width: 100%;
	}

	.filtros-container-mobile .form-check {
		flex-shrink: 0;
		min-width: 140px;
	}
}

.filtros-container-mobile::-webkit-scrollbar {
	width: 6px;
}

.filtros-container-mobile::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 10px;
}

.filtros-container-mobile::-webkit-scrollbar-thumb {
	background: #d685c0;
	border-radius: 10px;
}

.filtros-container-mobile::-webkit-scrollbar-thumb:hover {
	background: #b857a0;
}

.filtros-container .form-check,
.filtros-container-mobile .form-check,
#marcasDivChek .form-check,
#marcasDivChekMobile .form-check,
#publicoDivChek .form-check,
#publicoDivChekMobile .form-check {
	margin: 0;
	padding: 0.75rem;
	background: #f9f9f9;
	border-radius: 8px;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: auto;
}

.filtros-container .form-check:hover,
.filtros-container-mobile .form-check:hover,
#marcasDivChek .form-check:hover,
#marcasDivChekMobile .form-check:hover,
#publicoDivChek .form-check:hover,
#publicoDivChekMobile .form-check:hover {
	background: #f0e6f0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.filtros-container .form-check-input,
.filtros-container-mobile .form-check-input,
#marcasDivChek .form-check-input,
#marcasDivChekMobile .form-check-input,
#publicoDivChek .form-check-input,
#publicoDivChekMobile .form-check-input {
	margin-right: 0.75rem;
	cursor: pointer;
	transition: all 0.15s ease;
	width: 18px;
	height: 18px;
	min-width: 18px;
	min-height: 18px;
	flex-shrink: 0;
}

.filtros-container .form-check-input:checked,
.filtros-container-mobile .form-check-input:checked,
#marcasDivChek .form-check-input:checked,
#marcasDivChekMobile .form-check-input:checked,
#publicoDivChek .form-check-input:checked,
#publicoDivChekMobile .form-check-input:checked {
	background-color: #d685c0;
	border-color: #d685c0;
	box-shadow: 0 0 0 0.2rem rgba(214, 133, 192, 0.25);
}

.filtros-container .form-check-label,
.filtros-container-mobile .form-check-label,
#marcasDivChek .form-check-label,
#marcasDivChekMobile .form-check-label,
#publicoDivChek .form-check-label,
#publicoDivChekMobile .form-check-label {
	margin-bottom: 0;
	cursor: pointer;
	user-select: none;
	font-size: 0.85rem;
	color: var(--text-dark);
	flex: 1;
	word-break: break-word;
	line-height: 1.4;
}

/* Responsive */
@media (max-width: 767px) {
	.sidebar-sticky {
		position: relative;
		/* evita problemas de sticky en móvil */
		top: 0;
	}

	.card {
		padding: 1rem;
	}

	.btn-danger {
		width: 100%;
	}
}

/* ================= PAGINACIÓN ================= */
.pagination .page-link {
	border: none;
	color: var(--text-dark);
}

.pagination .active .page-link {
	background: var(--pink-main);
	color: white;
	border-radius: 50%;
}

/* ================= GALERÍA EN TARJETA ================= */
.product-images {
	position: relative;
	height: 150px;
	overflow: hidden;
}

.product-images img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 150px;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

.product-images img.active {
	opacity: 1;
}

.like-icon {
	z-index: 5;
}

.product-images {
	z-index: 1;
}

/* ================= INDICADORES DE IMAGEN ================= */
.image-indicators {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin-top: 6px;
}

.image-indicators span {
	width: 18px;
	height: 3px;
	background: #ddd;
	border-radius: 3px;
	cursor: pointer;
	transition: background .3s;
}

.image-indicators span.active {
	background: var(--pink-main);
}

/* ================= MOBILE FIX ================= */
@media (max-width: 768px) {

	/* Quitar figuras grandes en móvil */
	.bg-shapes {
		display: none;
	}

	/* Navbar más compacta */
	.navbar-brand {
		font-size: 16px;
	}

	/* Cards más grandes y cómodas */
	.product-card img,
	.product-images,
	.product-images img {
		height: 220px;
	}

	.product-card h6 {
		font-size: 16px;
	}

	.price {
		font-size: 16px;
	}

	/* Botones más grandes para el dedo */
	.btn-clase,
	.btn-qty {
		font-size: 15px;
		padding: 8px;
	}

	/* Ocultar sidebar en móvil */
	.sidebar-sticky {
		display: none;
	}

	#products>div {
		flex: 0 0 100%;
		max-width: 100%;
		display: flex;
	}

	.product-card {
		height: auto;
	}

	/* Search bar en vertical más limpio */
	.search-bar .btn,
	.search-bar input,
	.search-bar select {
		font-size: 14px;
	}
}

.color {
	background-color: #f48fb1;
	color: #fff;
}

/* =========================
   OVERLAY GLOBAL
   ========================= */

#spinner {
	position: fixed;
	inset: 0;
	display: none;

	justify-content: center;
	align-items: center;

	background: rgba(255, 255, 255, 0.7);
	z-index: 99999;
	/* ENCIMA DE TODO */
}

#spinner.active {
	display: flex;
}

/* =========================
   CONTENIDO CENTRADO
   ========================= */

.spinner-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

/* =========================
   SPINNER
   ========================= */

.sk-cube-grid {
	width: 40px;
	height: 40px;
}

.sk-cube {
	width: 33%;
	height: 33%;
	background-color: #d685c0;
	float: left;
	animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
}

/* delays */
.sk-cube1 {
	animation-delay: 0.2s;
}

.sk-cube2 {
	animation-delay: 0.3s;
}

.sk-cube3 {
	animation-delay: 0.4s;
}

.sk-cube4 {
	animation-delay: 0.1s;
}

.sk-cube5 {
	animation-delay: 0.2s;
}

.sk-cube6 {
	animation-delay: 0.3s;
}

.sk-cube7 {
	animation-delay: 0s;
}

.sk-cube8 {
	animation-delay: 0.1s;
}

.sk-cube9 {
	animation-delay: 0.2s;
}

/* =========================
   TEXTO
   ========================= */

.spinner-text {
	font-size: 0.95rem;
	font-weight: 600;
	color: #555;
}

/* =========================
   ANIMACIÓN
   ========================= */

@keyframes sk-cubeGridScaleDelay {

	0%,
	70%,
	100% {
		transform: scale3D(1, 1, 1);
	}

	35% {
		transform: scale3D(0, 0, 1);
	}
}

/* botones iconos productos */

.icon-action{
    position:absolute;
    width:24px;
    height:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:10;
    color:#555;
    font-size:14px;
    transition:color .2s, transform .2s;
}

/* hover general */
.icon-action:hover{
    color:#000;
    transform: scale(1.1);
}

/* ❤️ like activo */
.icon-action.like-active i{
    color:red;
}

.product-images {
    position: relative;
    width: 100%;
    height: 180px;
    padding-top: 40px;          /* espacio para iconos */
    overflow: hidden;
    box-sizing: border-box;
}

.product-images img {
    position: absolute;
    top: 40px;                  /* empieza debajo de iconos */
    left: 0;
    width: 100%;
    height: calc(100% - 40px);
    object-fit: contain;        /* 🔑 adapta sin deformar */
    opacity: 0;
    transition: opacity .4s ease;
}

.product-images img.active {
    opacity: 1;
}


.footer i {
    color: white;
}

.footer small {
    opacity: 0.9;
}

.footer:hover small {
    opacity: 1;
    transition: 0.3s;
}


/* =================== FOOTER FIJO ABAJO =================== */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main, .container.mt-3.mb-5 {
    flex: 1; /* ocupa todo el espacio disponible */
}

/* modal usuario */
/* SOLO modal cliente */
.modal-cliente {
    background-color: #f8d9e6;
    max-width: 460px;
    margin: auto;
}

/* header y body del cliente */
.modal-cliente .modal-header,
.modal-cliente .modal-body {
    background-color: #f8d9e6;
}

/* inputs SOLO dentro del modal cliente */
.modal-cliente .form-control {
    background-color: #fff;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* botón principal SOLO cliente */
.modal-cliente .btn-clase {
    background-color: #d685c0;
    color: #fff;
    border: none;
}

.modal-cliente .btn-clase:hover {
    background-color: #c56fae;
}

/* Ajustes para botones de pedido y paginación en móvil */
@media (max-width: 768px) {
	.pedido-botones .btn {
		/* igualar ancho dentro del contenedor flexible */
		flex: 1 1 auto;
	}

	/* permitir scroll horizontal en paginaciones largas */
	/* Aplicar scroll solo a las UL de paginación para no afectar otros nav */
	#pagination,
	#paginacionPedidoProducto {
		overflow-x: auto; /* UL se desplaza horizontalmente */
		-webkit-overflow-scrolling: touch;
		padding-bottom: 6px;
		display: block; /* UL es bloque desplazable */
		white-space: nowrap; /* evita salto de línea */
	}

	/* Forzar que los elementos li dentro de esas UL sean inline-block para permitir scroll */
	#pagination li,
	#paginacionPedidoProducto li {
		display: inline-block;
		margin-right: 6px;
	}

	/* Mantener distancia y apariencia razonable */
	#pagination .page-link,
	#paginacionPedidoProducto .page-link {
		display: inline-block;
		min-width: 38px;
		text-align: center;
	}

}

